/**
 * @method table表格的标题
 */
export const columns = [
    {
        title: '资产编号',
        dataIndex: 'code',
        slotName: 'code',
        ellipsis: true,
        width: 100,
    },
    {
        title: '资产名称',
        dataIndex: 'name',
        slotName: 'name',
        ellipsis: true,
        width: 110,
    },
    {
        title: '资产版本',
        dataIndex: 'version',
        slotName: 'version',
        ellipsis: true,
        width: 100,
    },
    {
        title: '入表金额',
        dataIndex: 'ru_biao_total',
        slotName: 'ru_biao_total',
        ellipsis: true,
        width: 100,
    },
    {
        title: '入表状态',
        dataIndex: 'ru_biao_status',
        slotName: 'ru_biao_status',
        ellipsis: true,
        width: 100,
    },
    {
        title: '入表时间',
        dataIndex: 'ru_biao_time',
        slotName: 'ru_biao_time',
        ellipsis: true,
        width: 100,
    },
    {
        title: '操作',
        slotName: 'operator',
        width: 120,
        align:'right'
    }
];

export const  columsPDF  = [
    {
        title: '摘要',
        dataIndex: 'template_summary',
        slotName: 'template_summary',
        ellipsis: true,
        width: 100,
        align:'center'
    },
    {
        title: '科目名称',
        dataIndex: 'template_subject',
        slotName: 'template_subject',
        ellipsis: true,
        width: 110,
        align:'center'
    },
    {
        title: '借方金额',
        dataIndex: 'debit_amount',
        slotName: 'debit_amount',
        ellipsis: true,
        width: 100,
        align:'center'
    },
    {
        title: '贷方金额',
        dataIndex: 'credit_amount',
        slotName: 'credit_amount',
        ellipsis: true,
        width: 110,
        align:'center'
    },
]
export const tableData = [
    {
        id: 1,
        code: '0001',
        name: '资产名称',
        version: 'V1.0',
        ru_biao_total: '-',
        ru_biao_status: '待确认',
        ru_biao_time: '2021-09-01 14:55:30'
    },
    {
        id: 2,
        code: '0002',
        name: '资产名称',
        version: 'V1.0',
        ru_biao_total: '-',
        ru_biao_status: '已固定',
        ru_biao_time: '2021-09-01 14:55:30'
    },
    {
        id: 3,
        code: '0003',
        name: '资产名称',
        version: 'V1.0',
        ru_biao_total: '-',
        ru_biao_status: '已确认',
        ru_biao_time: '2021-09-01 14:55:30'
    }
]

// 入表状态
export const options = [
    {
        label:'待确认',
        value:'待确认'
    },
    {
        label:'已确认',
        value:'已确认'
    },
    {
        label:'已撤销',
        value:'已撤销'
    },
    {
        label:'已固定',
        value:'已固定'
    }
]
export const Rules = {
    asset_planning: [
        { required: true, message: '请选择资产规划', trigger: 'change' }
    ],
    useful_life: [
        { required: true, message: '请选择使用寿命', trigger: 'change' },
    ],
    calculation_type: [{ required: true, message: '请选择计算公式', trigger: 'blur' }],
    description: [{ required: true, message: '请选输入判断依据', trigger:  ['change', 'blur'] }],
    upload_file: [{ required: true, message: '请上传文件', trigger: 'change' }],
};



export const showDetailTableData = [
    {
        title: '归属时间',
        dataIndex: 'belong_cycle',
        slotName: 'belong_cycle',
    },
    {
        title: '摊销进度',
        dataIndex: 'cycle_number',
        slotName: 'cycle_number',
    },
    {
        title: '摊销金额',
        dataIndex: 'amount',
        slotName: 'amount',
    },
    {
        title: '操作时间',
        dataIndex: 'cycle_start_time',
        slotName: 'cycle_start_time',
    },
]


